import React from 'react';
import {useNavigate} from 'react-router-dom';

const Details = () => {
    const navigate = useNavigate();
    return <>
        <h3>详情页面</h3>

        <button onClick={() => {
            navigate('/about', {
                state:{
                    x:100,
                    name: 'react'
                }
            })
        }}>跳转到我的页面</button>
    </>
}


export default Details;